package com.mingyuan.library.infra.lending.book.repository;

import com.mingyuan.library.domain.lending.book.model.entity.AvailableBook;
import io.vavr.control.Option;

import java.util.UUID;

/**
 * 可用图书仓储接口
 * @author yangzk
 * @version 1.0.0
 * @date 2024.01.16 09:41
 */
@FunctionalInterface
public interface AvailableBookRepository {
    /**
     * 查询可用图书
     * @author yangzk
     * @param bookId 图书ID
     * @date 2024/1/16 14:07
     **/
    AvailableBook findAvailableBookBy(UUID bookId);
}
